package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.bean.Log;
import com.cskaoyan.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author heyyon
 * 系统管理-操作日志
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;
    @RequestMapping("list")
    public BaseRespVo list(Integer page, Integer limit, String sort, String order) {
        ListData<Log> logListData = adminLogService.list(page, limit, sort, order);
        return BaseRespVo.ok(logListData);
    }
}
